# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=libbaseencode
pkgver=1.0.9
pkgrel=1
pkgdesc="Library for encoding decoding data use base32 or base64"
options="!check" # No woerking testsuite
url="https://github.com/paolostivanin/libbaseencode"
arch="all"
license="Apache-2.0"
makedepends="cmake"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/paolostivanin/libbaseencode/archive/v$pkgver.tar.gz"

build() {
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=None
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="26f3c8db6d72aad77fab9d6cdfe94e39891d7afff44d30af79926af72f1af97b8108a8226f376bd0bd3c8c02167a512604c7a52d16a8bce4167a7bdd4a2e603f  libbaseencode-1.0.9.tar.gz"
